Skip to content

feat!: support GraphQL Code Generator 7.4.2+ and 8 only - #11

Merged
yusufkandemir merged 1 commit into
mainfrom
feat/support-graphql-codegen-8
Nov 10, 2026
Merged

yusufkandemir merged 1 commit into
mainfrom
feat/support-graphql-codegen-8

Conversation

@yusufkandemir

Copy link
Copy Markdown
Member

Support GraphQL Code Generator 7.4.2+ and 8, and drop older versions.

Breaking changes

  • @graphql-codegen/cli 7.4.2 or 8. Version 7.0 to 7.4.1 can't load plugins under pnpm.
  • typescript-operations 6 or 7, typed-document-node 7 or 8.
  • graphql 16, Vue 3.3+, Node.js 22+.
  • The plugin has only named exports (plugin, validate). The default export is gone.

Features

  • New validate() export that rejects output files that are not TypeScript. It supports both the codegen 7 and codegen 8 signatures.
  • near-operation-file and vue-query-block support Vite 5 to 8.

Fixes

  • Deep type imports from @vue/apollo-composable use a .js suffix. They failed with TS2307 under "moduleResolution": "bundler".
  • vue-query-block throws on Vue SFC parse errors.

Tests

New e2e tests in e2e/. They pack the three packages and install them into two projects:

  • minimum: the oldest supported versions.
  • latest: the newest versions.

Each project runs codegen, type-checks the output with bundler, node10 and nodenext resolution, and runs a Vite build. Two more tests check the error messages. CI runs them on Node 22(minimum we support) and 26(latest available LTS).

Docs

  • New compatibility table and "Upgrading from 0.1" section in the plugin README.
  • Examples no longer use baseTypesPath or the typescript plugin.

The plugin now requires codegen 7.4.2 or 8, typescript-operations 6 or 7,
graphql 16 and Vue 3.3. Deep type imports use a ".js" suffix, because
TypeScript reported TS2307 under "moduleResolution": "bundler". Adds e2e
tests that pack the packages and run them against minimum and latest versions.
@yusufkandemir
yusufkandemir merged commit 9ad2b5a into main Nov 10, 2026
3 checks passed
@IlCallo
IlCallo deleted the feat/support-graphql-codegen-8 branch November 10, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant